//
//  ProductBoughtCell.m
//  loveKangaroo
//
//  Created by 趣看 on 15/3/4.
//  Copyright (c) 2015年 SeeKool Inc. All rights reserved.
//

#import "ProductBoughtCell.h"

@implementation ProductBoughtCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)addleftPanGesture
{
    UISwipeGestureRecognizer *left = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(leftPan)];
    
    left.direction = UISwipeGestureRecognizerDirectionLeft;
    
    [_leftView addGestureRecognizer:left];
}

- (void)leftPan
{
    
    _btnX.constant  = 100;
    
    [self setNeedsUpdateConstraints];
    [UIView animateWithDuration:0.35f animations:^{
        [self layoutIfNeeded];
    }];
}

//恢复
- (IBAction)recover:(id)sender
{
    
    
}

@end
